package com.ssyt.wxstore.store.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * StoreProduct entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "store_product", catalog = "wxstore")
public class StoreProduct implements java.io.Serializable {

	// Fields

	private String id;
	private String pic;
	private String bannerPic;
	private Integer flag;
	private String name;
	private String description;
	private double price;
	private Integer state;

	// Constructors

	/** default constructor */
	public StoreProduct() {
	}

	/** minimal constructor */
	public StoreProduct(String id, String pic, Integer flag, String name,
			String description, double price, Integer state) {
		this.id = id;
		this.pic = pic;
		this.flag = flag;
		this.name = name;
		this.description = description;
		this.price = price;
		this.state = state;
	}

	/** full constructor */
	public StoreProduct(String id, String pic, String bannerPic, Integer flag,
			String name, String description, double price, Integer state) {
		this.id = id;
		this.pic = pic;
		this.bannerPic = bannerPic;
		this.flag = flag;
		this.name = name;
		this.description = description;
		this.price = price;
		this.state = state;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "pic", nullable = false)
	public String getPic() {
		return this.pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	@Column(name = "banner_pic")
	public String getBannerPic() {
		return this.bannerPic;
	}

	public void setBannerPic(String bannerPic) {
		this.bannerPic = bannerPic;
	}

	@Column(name = "flag", nullable = false)
	public Integer getFlag() {
		return this.flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	@Column(name = "name", nullable = false, length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "description", nullable = false, length = 65535)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "price", nullable = false, precision = 10)
	public double getPrice() {
		return this.price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	@Column(name = "state", nullable = false)
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

}